namespace ghost
{
    export class SleepBtn extends GYSprite
    {
        public lab:Laya.Text;        
        constructor()
        {
            super();
            let s = this;
            s.texture = Main.instance.getRes(Conf.scene + "commonBtn.png");
            s.lab = new Laya.Text;
            s.lab.color = "#ffffff";
            s.lab.fontSize = 30;            
            s.lab.text = "睡觉";
            s.lab.stroke = 4;
            s.lab.strokeColor = "#000000";
            s.lab.y = 26;
            s.lab.x = 10;            
            s.lab.align = "center";
            s.lab.width = s.texture.width;
            s.addChild(s.lab);            
            s.pivot(0.5, 0.5);
        }
    }
}